package com.liuyu.lottery.service;

import java.util.List;

import com.liuyu.common.core.core.domain.R;
import com.liuyu.common.orm.core.page.TableDataInfo;
import com.liuyu.common.orm.core.service.IBaseService;
import com.liuyu.lottery.domain.Mail;
import com.liuyu.lottery.domain.vo.MailVo;
import com.liuyu.lottery.domain.bo.MailBo;

/**
 * MailControllerService接口
 *
 * @author liuyu
 * 2024-03-05
 */
public interface IMailService extends IBaseService<Mail>
{
    /**
     * 查询MailController
     *
     * @param id MailController主键
     * @return MailController
     */
    MailVo selectById(Integer id);

    /**
     * 查询MailController列表
     *
     * @param mailBo MailControllerBo
     * @return MailController集合
     */
    List<MailVo> selectList(MailBo mailBo);

    /**
     * 分页查询MailController列表
     *
     * @param mailBo MailControllerBo
     * @return 分页MailController集合
     */
    TableDataInfo<MailVo> selectPage(MailBo mailBo);

    /**
     * 新增MailController
     *
     * @param mailBo MailControllerBo
     * @return 结果:true 操作成功，false 操作失败
     */
    boolean insert(MailBo mailBo);

    /**
     * 修改MailController
     *
     * @param mailBo MailControllerBo
     * @return 结果:true 更新成功，false 更新失败
     */
    boolean update(MailBo mailBo);

    /**
     * 批量删除MailController
     *
     * @param ids 需要删除的MailController主键集合
     * @return 结果:true 删除成功，false 删除失败
     */
    boolean deleteByIds(Integer[] ids);

    R<List<MailBo>> search(String fromUser, String toUser);
}
